package com.wildworld.core;

import com.wildworld.core.worldobjects.WorldObject;
import org.springframework.stereotype.Service;

import java.util.Iterator;

/**
 * @author gzhebrakov
 *         Date: 26.06.12
 *         Time: 16:57
 *         world interface
 */

public interface IWorld extends Runnable{
    public void setWorldMap(IMap map);
    public IMap getWorldMap();
    public Iterator<WorldObject> getWorldObjects();
    public void addWorldObject(WorldObject obj);
    public WorldObject findObjectById(String id);
    public void stop();
}
